﻿
@{
    Layout = null;
}
@model NB.MGJ.Model.Product_ProductTypes

@*编辑产品分类*@
<form id="ProductTypeD" method="post" class="form-horizontal">
    <div class="form-group margin-top-15 margin-bottom-15">
        <div class="col-xs-2 col-md-2 text-right">
            <span class="red-700">*</span> 类型名称：
        </div>
        <div class="col-xs-10 col-md-10">
            <input class="form-control" type="text" name="TypeName" maxlength="25" value="@Model.TypeName" placeholder="请输入类型名称"/>
        </div>
    </div>
    <div class="form-group margin-top-15 margin-bottom-15">
        <div class="col-xs-2 col-md-2  text-right">
            备注：
        </div>
        <div class="col-xs-10 col-sm-10 col-md-10 col-lg-10">
            <input class="form-control" type="text" id="Remark" name="Remark" value="@Model.Remark" />
        </div>
    </div>
    <input type="text" style="display:none" value="@Model.ChangeDate" name="ChangeDate" />
    <input type="text" style="display:none" value="@Model.ChangeLoginID" name="ChangeLoginID" />
    <input type="text" style="display:none" value="@Model.ChangeLoginName" name="ChangeLoginName" />
    <input type="text" style="display:none" value="@Model.EnterpriseId" name="EnterpriseId" />
    <input type="text" style="display:none" value="@Model.Id" name="Id" />
    <input type="text" style="display:none" value="@Model.Sequence" name="Sequence" />
    <input type="text" style="display:none" value="@Model.ViewDel" name="ViewDel" />
</form>

<script>

    $('#ProductTypeD').bootstrapValidator({

        fields: {
            TypeName: {
                validators: {
                    notEmpty: {
                        message: '类型名称不能为空'
                    },
                    stringLength: {
                        max: 25,
                        message: '类型名称最大长度为25',
                    }
                }
            },
        }

    });

</script>